import { request } from "@/utils/axios"

export function TestApi() {
    return request(
        {
            url: "",
            method: "",
            params: {},
            data: {}
        }
    );
}



/**
 * 批量导入积分
 */
export function ImportPointsApi(data) {
    return request(
        {
            url: "/organizing/importPoints",
            method: "PUT",
            data: data
        }
    );
}
/**
 * 批量导入成绩
 */
export function ImportAwards(data) {
    return request(
        {
            url: "/organizing/importAwards",
            method: "PUT",
            data: data
        }
    );
}


/**
 * 生成秘钥
 */
export function GenerateKeyApi(data) {
    return request(
        {
            url: "/secretkey/generateKey",
            method: "POST",
            data: data
        }
    );
}

/**
 * 查询秘钥
 */
export function GetSecretKeyListPageApi(params) {
    return request(
        {
            url: "/secretkey/getSecretKeyListPage",
            method: "GET",
            params: params,
        }
    );
}



/**
 * 查询秘钥
 */
export function ActivationKeyApi(data) {
    return request(
        {
            url: "/secretkey-activation/activationKey",
            method: "POST",
            data: data,
        }
    );
}

/**
 * 激活
 */

export function ActivatePlayerApi(params) {
    return request(
        {
            url: "/agent/activatePlayer",
            method: "PUT",
            params: params,
        }
    );
}



/**
 * 获取统计
 */

export function GetStatisticsApi(params) {
    return request(
        {
            url: "/information/getStatistics",
            method: "GET",
            params: params,
        }
    );
}

/**
 * 测试图形验证码问题
 */

export function GetCodeTestApi(params) {
    return request(
        {
            url: "/information/test",
            method: "GET",
            params: params,
        }
    );
}


/**
 * 获取验证码
 */

export function sendCode(params) {
    return request(
        {
            url: "/information/sendCode",
            method: "GET",
            params: params,
        }
    );
}

/**
 * 忘记密码
 */

export function forgetPassword(data) {
    return request(
        {
            url: "/user/forgetPassword",
            method: "POST",
            data,
        }
    );
}

